package com.example.service.impl;

import com.example.mapper.OutputMapper;
import com.example.pojo.OutputEcharts;
import com.example.pojo.OutputMater;
import com.example.service.OutputService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

@Service
public class OutputServiceImpl implements OutputService {
    @Autowired
    private OutputMapper outputMapper;
    @Override
    public List<OutputEcharts> outout_m() {
        List <OutputEcharts> outputEcharts = outputMapper.outout_m();
        return outputEcharts;
    }

    @Override
    public List<OutputEcharts> outout_m1() {
        LocalDate localDate=LocalDate.now();
        List <OutputEcharts> outputEcharts = outputMapper.outout_m1(localDate);
        return outputEcharts;
    }
}
